import proFetch from "../../../../../../public/functions/project-fetch";
import {toast} from 'nc-lightapp-front'

export default function saveInnerTransData(param_str,) {
    const {orgVal, form, getMainTableData} = this.props;
    let postData = {
        param_str,
        pk_org: orgVal.refpk,
        model: form.getAllFormValue('innertrans')
    };

    return proFetch({
        url: '/nccloud/hrtrn/dimissionrds/DimissionRdsTransDoAction.do',
        body: postData,
    })
        .then((res) => {
            if (res.success) {
                toast({
                    color: 'success',
                    content: this.props.json['hi6007-000162']/* 国际化处理： 转移成功*/
                });
                this.closeModal();
                getMainTableData();
            }
        });
}
